<?php
class UserModel extends CI_Model{
    
    public function loginUser ($userName, $password) {
        $this->db->select ('userId, userName, password, userTypeId');
        $this->db->from ('users');
        $this->db->where('userName',$userName);
        $this->db->where('password',$password); 
        $query = $this->db->get();
        $usersMatchArray = $query->result();
        return $usersMatchArray;
    }
    
}
